<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=2, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./nprogress.css">
</head>
<body>
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="./nprogress.js"></script>
    <script>
    NProgress.configure({
        showSpinner:false
    })
    $(window).ajaxStart(function(){
        NProgress.start();
    });
    $(window).ajaxSuccess(function(){
        NProgress.done();
    })
    $.ajax({
            type: 'get',
            url: './a.json',
            data: {},//{key1:value1}
            dataType: 'json',
            success: function (data){
                console.log(data);
            }
    })
    </script>
</body>
</html>